import requests


def hot():
    # B站每日热门,一共100条
    # id = 1
    url = 'https://api.bilibili.com/x/web-interface/ranking?day=1'
    response = requests.get(url).json()
    data = []
    for each in response['data']['list']:
        data.append([each['title'], 'https://www.bilibili.com/av' + each['aid']])
    return str(data)


if __name__ == '__main__':
    hot()

